package com.hjqjl.whdemo.feature.feature0.ui.activity.custom;

import android.content.Context;
import android.content.Intent;
import android.view.View;

import com.hjqjl.whdemo.base.BaseActivity;
import com.hjqjl.whdemo.databinding.ActivityNodeprogressBinding;
import com.hjqjl.whdemo.widget.NodeProgressBar;

public class NodeProgressActivity extends BaseActivity {
    public static void actionStart(Context context) {
        Intent intent = new Intent(context, NodeProgressActivity.class);
        context.startActivity(intent);
    }

    private ActivityNodeprogressBinding binding;

    @Override
    protected void initData() {
        binding = ActivityNodeprogressBinding.inflate(getLayoutInflater());
        View view = binding.getRoot();
        setContentView(view);
    }

    @Override
    protected void processLogic() {
        binding.porBarNodeprogress.setOnNodeProgressBarListener(new NodeProgressBar.onNodeProgressBarListener() {
            @Override
            public void getCurrentNodeAndMoney(int currentNode, int currentMoney) {
                binding.tvNodeprogressShow.setText("currentNode" + currentNode + "---currentMoney" + currentMoney);
            }
        });
    }
}
